import { createRouter, createWebHistory } from 'vue-router';


const Layout = () => import('../views/index.vue');
const Flower= () => import('../components/flower.vue');
const Category= () => import('../components/category.vue');
const Order= () => import('../components/order.vue');
const Login= () => import('../components/login.vue');
const routes = [
    {
        path: '/',
        component: Layout ,
        children:[
            {path: '/', component: Flower },
            { path: '/category', component: Category },
            { path: '/order', component: Order },
        ]
    },
    { path: '/login', component: Login },
];

const router = createRouter({
    history: createWebHistory(),
    routes: routes,
});

export default router;
